<?php
/**
 * Created by PhpStorm.
 * User: pc
 * Date: 2024/3/14
 * Time: 16:38
 */

namespace app\modules\bg\controllers;


use app\common\service\TiktokDataGet;

class ApiController extends \sookie\core\controllers\ApiController
{
    //api创建记录
    public function actionIndex(){
        $urls = \Yii::$app->request->post("urls");
        $obj = new TiktokDataGet();
        if(is_array($urls)){
            foreach ($urls as $url){
                $obj->createResponse($url);
            }
        }else{
            $obj->createResponse($urls);
        }
    }
}